<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ include file="/sys/include/header.jsp" %>
<%@ page import="java.util.*,com.es.business.area.*, com.es.business.province.*"%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>维护省区</title>
<link href="sys/style01/css/table.css" rel="stylesheet" type="text/css">
<link href="sys/css/banzu.css" rel="stylesheet" type="text/css"  >
</head>
<body class="ridgeBody" >
<script language="javascript">
	
function doDelete(p_id, p_code){
		if (confirm("是否确认删除？删除后数据不可见！")) {
			document.queryFrom.action = "business/province/provincedelete.action?hprovince_id=" + p_id + "&hprovince_code"+p_code;
			document.queryFrom.submit();
		  return true;
		 } else{ 
		  return false;
		 }
	}

function edit(p_id){
		document.queryFrom.action = "business/province/provinceModifyInit.action?province_id=" + p_id;
		document.queryFrom.submit();
}
</script>

<table width="100%" >
<tr><td> 
 <form name="queryFrom" method="post" action="business/province/provincesearch.action"> 
 	<input name="curpage" type="hidden" class="input" value="1">
 <fieldset align='left' style="width:500"> 
  <legend><font  size="2"><img src="sys/images/getpic.gif"> 请选择查询条件</font></legend>
   <table id="tab4" style="display:block;" class="datatable" width="500" cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE'>
  	<tr>
		<td height="26" colspan="4"  class="dataTitle">查询省信息</td>
	 </tr>
	 
	 <tr>
        <TD height="22" valign="top" nowrap class="datatr1"> 选择区域<font color="#FF0000"></font>：</TD>	

	<td height="22" with="25%">
	        	<select class="selectwidth" name="area_code" onChange="selectArea(this.options[selectedIndex].value)"  >
		            <option value="" selected>请选择</option>
		            <c:forEach items="${arealist}" var="area">
						<option value="${area.areaCode}"<c:if test="${area.areaCode==area_code}">selected</c:if>>${area.areaValue}</option>	
					</c:forEach>
		        </select>
	</td></tr>
	 <tr>
	
	<tr>
		<td height="26" with="50%" nowrap="nowrap" class="datatr1"><span class="STYLE1"></span>省编码：</td>
		<td height="26" with="25%">
			<input name="province_code" type="text" class="input" value="${province_code}">
		</td>
		</tr>
		<tr>
		<td height="26" with="50%" nowrap="nowrap" class="datatr1"><span class="STYLE1"></span>省名称：</td>
		<td height="26" with="25%">
			<input name="province_value" type="text" class="input" value="${province_value}">
		</td>
	</tr>
	<tr>
		<td height="25" colspan="4"  class="dataTitle"><input type="Submit" name="Submit" value="查询" ></td>
	</tr>
</table>
</fieldset>
</form>
</td></tr> <tr ><td width="100%"  >
<table width="100%" cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE' class="datatable">
	<tr>
		<td height="22" nowrap class="dataTitle" align="center">&nbsp;操作&nbsp;</td>
		<td height="22" nowrap class="dataTitle" align="center">&nbsp;省编码&nbsp;</td>
		<td height="22" nowrap class="dataTitle" align="center">&nbsp;省名称&nbsp;</td>
		<td height="22" nowrap class="dataTitle" align="center">&nbsp;区域名称&nbsp;</td>
	</tr>
	<c:forEach items="${pageBean.map}" var="map">
	<tr class="datatr" align="center" onMouseOver=this.className='udatatr' onMouseOut=this.className='datatr'>
		 <td class="Table_tool"><IMG border=0 SRC='sys/images/edit.gif' onClick="edit('${map.province_id}')" alt='编辑' style="cursor:hand">
		 <IMG border=0 SRC='sys/images/del.gif' onClick= "doDelete('${map.province_id}','${map.province_code}')" alt='删除' style='cursor:hand'></td>
		 <td nowrap="nowrap" class="Table_str" >${map.province_code}&nbsp;</td>
		 <td nowrap="nowrap" class="Table_str" >${map.province_name}&nbsp;</td>
		 <td nowrap="nowrap" class="Table_str" >${map.area_value}&nbsp;</td>		 
	</tr>
	</c:forEach>
	<c:if test="${pageBean.page.rowTotal>0}">
	<tr>
		<td height="20" colspan="9">
			<jsp:include page="/sys/include/page.jsp" flush="true"/> 
		</td>
	</tr>
	</c:if> 
 </table>
 </td></tr>	
</table>

</body>
</html>
